<li class="list" style="height:130px;padding-top:5px;">

  <!--div class="check_box">
  <input name="basket_item_product" value="142592-34987" type="checkbox" align="absmiddle">
  </div-->
  <div class="photo_box">
    <a href="<%="/categories/#{product_li.category_id}/products/#{product_li.uuid}"%>">
      <% if product_li.image_url%>
        <%= image_tag url_for_file_column(product_li, "image_url","thumb"),:class=>'product_img' %>
      <% elsif product_li.abstract_product && product_li.abstract_product.image_url %>
        <%= image_tag url_for_file_column(product_li.abstract_product, "image_url","thumb"),:class=>'product_img' %>
      <% end  %>
    </a>
  </div>
  <div class="text_box">
    <div class="name">
      <a href="<%="/categories/#{product_li.category_id}/products/#{product_li.uuid}"%>">
        <span class="product_title"><%=h product_li.name %></span>
      </a>

    </div>
    <div class="description">
      <% if product_li.description %>
        <%=format_desc(product_li.description)%>
      <%elsif product_li.abstract_product_id%>
        <%=format_desc(product_li.abstract_product.description)%>
      <%end%>
    </div>
    <div class="link">
      <a href="<%="/categories/#{product_li.category_id}/products/#{product_li.uuid}"%>" class="action_more">详细信息</a>

      <a href="javascript:void(0);" class="action_compare">加入比较</a>
      <a href="javascript:void(0);" onclick="addToCart(<%=product_li.id%>);" class='action_buy' >购买</a>
      <% if admin? %>
        <%= link_to '编辑', [:edit,product_li.category,product_li],:class=>'action_edit' %>
        <%= link_to '删除',[product_li.category, product_li], :confirm => 'Are you sure?', :method => :delete,:class=>'action_delete' %>
      <% end %>
    </div>
  </div>
</li>

<div class="break_line">
</div>